//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Linq;

using ProjectBase.Core;

namespace $safeprojectname$
{
    /// <summary>
    /// Entity CustomList.
    /// </summary>
    [Serializable]
    public class CustomList : CodeList
    {
        public virtual CustomList Parent { get; set; }
        public virtual int? ParentId { get; set; }

        public virtual CustomListType CustomListType { get; set; }
        public virtual string CustomListTypeName
        {
            get { return CustomListType.Is() ? CustomListType.Description : string.Empty; }
        }
        public virtual int CustomListTypeId { get; set; }

        public override object Clone()
        {
            var entity = base.Clone() as CustomList;
            entity.CustomListType = CustomListType.Clone() as CustomListType;
            return entity;
        }
    }
}